package mapper;

import org.apache.ibatis.annotations.Param;
import org.omg.CORBA.INTERNAL;
import pojo.invitation;
import pojo.reply_detail;

import java.awt.print.Book;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2019/1/4.
 */
public interface ForumMapper {
    /**
     * 分页 getBookList(如果无限制条件，则默认写form,pageSize,否则，有几个限制条件，就加几个！！) ,getCount(如果无限制条件，则默认不屑参数,否则，有几个限制条件，就加几个！！)
     * @param id
     * @param ttt
     * @param currentPageNo
     * @param pageSize
     * @return
     */
    List<invitation>  getInvitationList(@Param("id") Integer id,@Param("title") String title, @Param("form")Integer currentPageNo,
                                        @Param("pageSize")Integer pageSize);
    List<reply_detail>  getReply_detailList(@Param("id") Integer id,  @Param("form")Integer currentPageNo,
                                            @Param("pageSize")Integer pageSize);

    int getReplyCount(@Param("id") Integer id);

    int addRepaly(reply_detail reply);

    int deleteByInvitationId(int id);

    int getCount(@Param("id") Integer id,@Param("title")String title);

    int deleteByreplay_detailId(int id);

}
